package com.roc.steelend.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Timestamp;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "client")
public class Client implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer clientId;
    private String clientName;
    private Integer groupId;
    private String sex;
    @JsonSerialize(using = ToStringSerializer.class)
    private BigInteger phone;
    @JsonSerialize(using = ToStringSerializer.class)
    private BigInteger qq;
    private String email;
    private  String address;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp signupTime;
    private String remark;
    private BigDecimal debt;
    private BigDecimal invoice;
}
